import time

t0 = time.time()
for i in range(0 , 10):
    for j in range(0 , 10):
        for k in range(0, 10):
            for m in range(0, 10):
                a = i * 100 +j * 10 + 1 * 1
                b = k * 100 + 2 * 10 + m * 1
                c = m * a
                d = 2 * a
                e = k * a
                f = b * a
                if 999 < c < 10000 and \
                    999 < d < 10000 and \
                    999 < e < 10000 and \
                    99999 < f < 1000000 and \
                    c //100 % 10 == 3 and \
                    d // 100 % 10 == 4 and \
                    e // 100 % 10 == 5 and \
                    f // 100000 == 6:
                    print('a = %s, b = %s, b = %s, b = %s, b = %s, b = %s'%(a, b, c, d, e ,f ))

t1 = time.time()

print('used time = %s' % (t1 - t0))
